#include "aboutdimwindow.h"
#include "ui_aboutdimwindow.h"
#include "publicstruct.h"

#include <QFile>

AboutDIMWindow::AboutDIMWindow(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::AboutDIMWindow)
{
    ui->setupUi(this);

    // 窗口渲染
    setQssStyle(QString("../style/AboutDIM.qss"),this);

    this->setWindowTitle("关于龙通讯");

    // 隐藏最小化、最大化按钮,只保留关闭按钮
    this->setWindowFlags(Qt::WindowCloseButtonHint);
    // 固定窗口大小
    this->setFixedSize(QSize(400,300));

    QString title = "龙通讯 1.0";
    ui->lab_title->setText(title);
    QString info = "龙通讯是一款即时通讯IM系统,可支持多种功能!\n希望能给你带来良好的体验!";
    ui->lab_info->setText(info);

}

AboutDIMWindow::~AboutDIMWindow()
{
    delete ui;
}

